import mitt from "mitt";
const emitter = mitt();
const eventBus = {
  // 录入团单完成
  groupOrderEntryImportConfirm: {
    emit: (e: any = '') => {
      emitter.emit('groupOrderEntryImportConfirm', e);
    },
    on: (callback: any = '') => {
      emitter.on('groupOrderEntryImportConfirm', (e) => callback(e));
    },
    off: () => {
      emitter.off('groupOrderEntryImportConfirm');
    }
  },
}
export default eventBus;